package com.itheima.array;

public class DemoArray {
    public static void main(String[] args) {
        //数据类型 数组名 = new 数组类型[]{数据1,数据2}
        int[] arr = new int[]{12,21,342};
        System.out.println(arr[0]);
        System.out.println(arr[1]);
        System.out.println(arr[2]);
        System.out.println("------------------");
        int[] arr1 = {23,3,45};
        System.out.println(arr1[0]);
        System.out.println(arr1[1]);
        System.out.println(arr1[2]);
    }
}
